<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>公告管理</title>
  <link rel="stylesheet" href="../boot/bootstrap.min.css">
  <link rel="stylesheet" href="./css/glym.css">
</head>
<body>
  <div class="container-fluid">

    <div>
      <h1 class="ys1 dys">管理公告</h1>
    </div>
    <div class="zz"></div>

    <!-- 菜单 -->

    <div class="m-2 text-end d-flex justify-content-end">
      <div class="row">
        <div class="col-auto">
          <span class="btn btn-info" data-bs-toggle="modal" data-bs-target="#pbDialog">添加公告</span>
          <span class="btn btn-info" id="btnqh">切换评论管理</span>
          <span class="btn btn-info" id="btnfh">返回</span>
        </div>

      </div>

    </div>

    <!-- 表格数据呈现 -->
    <table class="ys table table-hover">
      <thead>
        <tr>
          <th>主键</th>
          <th>公告标题</th>
          <th>公告内容</th>
          <th>信息最后修改时间</th>
          <th>操作</th>

        </tr>
      </thead>

      <tbody id="tbdata"></tbody>

    </table>
  </div>
<!-- 分页的部分 -->
    <div >
      <nav class="ys dys sb" id="navpage">
        <span class="page-link">上一页</span>
        <span class="page-link"></span>
        <span class="page-link">下一页</span>
      </nav>
    </div>
  <!-- 添加对话框 -->
  <div id="pbDialog" class="modal fade" tabindex="-1">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title">添加留言板公告</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>

        <div class="modal-body">

          <div class="m-2">
            <input type="text" id="txtatitle" placeholder="标题" class="form-control">
          </div>

          <div class="m-2">
            <input type="text" id="txtbinfo" placeholder="内容" class="form-control">
          </div>
        </div>

        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
          <button id="btnadd" class="btn btn-success">
            确定
          </button>

        </div>
      </div>
    </div>
  </div>

<!-- 删除对话框 -->
<div id="scDialog" class="modal fade" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">删除公告</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="m-2">
        <h3>你确定要删除公告！！！</h3>
      </div>

      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">不确定删除</button>
        <button id="btnadd" class="btn btn-success">
          确定删除
        </button>

      </div>
    </div>
  </div>
</div>


  <!-- 公用消息轻提示 -->
  <div class="toast-container position-fixed bottom-0 end-0 p-3">
    <div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
      <div class="toast-header">
        <strong class="me-auto">服务器消息</strong>
        <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
      </div>
      <div class="toast-body">
        Hello, world! This is a toast message.
      </div>
    </div>
  </div>
  <!-- 公用消息轻提示结束 -->

  <script src="../boot/popper.min.js"></script>
  <script src="../boot/bootstrap.min.js"></script>
  <script src="./js/ggcz.js" type="module"></script>
</body>
</html>